package com.afterglow.example.examplespringbootconsumer;

import com.afterglow.example.common.model.User;
import com.afterglow.example.common.service.UserService;
import com.afterglow.lcsrpc.springboot.starter.anno.RpcReference;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Description:
 * Date: 2025/01/12
 * author: lcs
 */
@Service
@Slf4j
public class ExampleServiceImpl {

    @RpcReference
    private UserService userService;

    public void test(){
        User user = new User();
        user.setName("lcs");
        User result = userService.getUser(user);
        log.info(result.getName());
    }
}
